This is a design principle for all mutable data structures in Python. 5.1.1. Using Lists as Stacks ... first-out”). To add an item to the top of the stack, use append(). To retrieve an item from the top of the stack, use pop() without an explicit index. F